/*    */ package tools.api;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Console
/*    */ {
/*  9 */   private static final Kernel32 kernel32 = Kernel32.INSTANCE;
/* 10 */   private static final int hStdout = kernel32.GetStdHandle(-11);
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static void setTitle(String title) {
/* 18 */     kernel32.SetConsoleTitleA(title);
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static void clear() {
/* 25 */     PCONSOLE_SCREEN_BUFFER_INFO buff = new PCONSOLE_SCREEN_BUFFER_INFO();
/* 26 */     kernel32.GetConsoleScreenBufferInfo(hStdout, buff);
/* 27 */     int dwConSize = buff.dwSize.x * buff.dwSize.y;
/* 28 */     kernel32.FillConsoleOutputCharacterA(hStdout, 32, dwConSize, 0, new int[1]);
/* 29 */     kernel32.GetConsoleScreenBufferInfo(hStdout, buff);
/* 30 */     kernel32.FillConsoleOutputAttribute(hStdout, buff.wAttributes, dwConSize, 0, new int[1]);
/* 31 */     kernel32.SetConsoleCursorPosition(hStdout, 0);
/*    */   }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */   
/*    */   public static void setColor(int color) {
/* 44 */     kernel32.SetConsoleTextAttribute(hStdout, color);
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\tools\api\Console.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */